#pragma once
#include <queue>
#include <deque>

namespace YuShen
{
	template<class T, class Container = std::deque<T>>
	class queue
	{
	public:
		void push(const T& val)
		{
			q.push_back(val);
		}

		void pop()
		{
			q.pop_front();
		}

		T& top()
		{
			return q.front();
		}

		T top() const
		{
			return q.front();
		}

		bool empty() const
		{
			return q.empty();
		}

		size_t size()
		{
			return q.size();
		}
	private:
		Container q;
	};
}